package com.lzh.shijicloudstack.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lzh.shijicloudstack.common.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;
import java.util.Date;

/**
 * 菜谱表
 *
 * @author luzhiheng
 * @since 2024-12-28 16:14:28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("calendar_record")
@Entity
@Table(name = "calendar_record", indexes = {
        @Index(name = "cookbook_idx", columnList = "cookbook_id", unique = false)
})
public class CalendarRecord extends BaseEntity {

    /**
     * 菜谱ID
     */
    @Column(name = "cookbook_id", columnDefinition = "bigint(20) COMMENT '菜谱ID'")
    private Long cookbookId;

    /**
     * 餐食类别 0:早餐 1:午餐 2:晚餐
     */
    @Column(name = "eat_type", columnDefinition = "int(11) COMMENT '餐食类别 0:早餐 1:午餐 2:晚餐'")
    private Integer eatType;

    /**
     * 日期
     */
    @Column(name = "date", columnDefinition = "datetime COMMENT '日期'")
    private Date date;

    /**
     * 备注
     */
    @Column(name = "remark", columnDefinition = "varchar(255) COMMENT '备注'")
    private String remark;

}
